Package com.cisco.pt.ipc.sim.pdu.impl
Class PrefixOptionImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.NdOptionImpl
com.cisco.pt.ipc.sim.pdu.impl.PrefixOptionImpl
- All Implemented Interfaces:
IPCData,NdOption,Pdu,PrefixOption,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected intprotected IPV6Addressprotected Byteprotected intFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.NdOptionImpl
optionTypeFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) booleanbooleanintintvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetIsAutoConfig(boolean isAutoConfig) voidsetIsOnLink(boolean isOnLink) voidsetPreferredLifetime(int preferredLifetime) voidsetPrefix(IPV6Address prefix) voidsetPrefixLength(Byte prefixLength) voidsetValidLifetime(int validLifetime) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.NdOptionImpl
getOptionType, setOptionTypeMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.NdOption
getOptionType, setOptionTypeMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
prefixLength
-
isOnLink
protected boolean isOnLink -
isAutoConfig
protected boolean isAutoConfig -
validLifetime
protected int validLifetime -
preferredLifetime
protected int preferredLifetime -
prefix
-
-
Constructor Details
-
PrefixOptionImpl
public PrefixOptionImpl()
-
-
Method Details
-
getPrefixLength
- Specified by:
getPrefixLengthin interfacePrefixOption- Returns:
- Byte Returns a Byte
-
setPrefixLength
- Specified by:
setPrefixLengthin interfacePrefixOption- Parameters:
prefixLength- Takes in a parameter of prefixLength
-
getIsOnLink
public boolean getIsOnLink()- Specified by:
getIsOnLinkin interfacePrefixOption- Returns:
- boolean Returns a boolean
-
setIsOnLink
public void setIsOnLink(boolean isOnLink) - Specified by:
setIsOnLinkin interfacePrefixOption- Parameters:
isOnLink- Takes in a parameter of isOnLink
-
getIsAutoConfig
public boolean getIsAutoConfig()- Specified by:
getIsAutoConfigin interfacePrefixOption- Returns:
- boolean Returns a boolean
-
setIsAutoConfig
public void setIsAutoConfig(boolean isAutoConfig) - Specified by:
setIsAutoConfigin interfacePrefixOption- Parameters:
isAutoConfig- Takes in a parameter of isAutoConfig
-
getValidLifetime
public int getValidLifetime()- Specified by:
getValidLifetimein interfacePrefixOption- Returns:
- int Returns a int
-
setValidLifetime
public void setValidLifetime(int validLifetime) - Specified by:
setValidLifetimein interfacePrefixOption- Parameters:
validLifetime- Takes in a parameter of validLifetime
-
getPreferredLifetime
public int getPreferredLifetime()- Specified by:
getPreferredLifetimein interfacePrefixOption- Returns:
- int Returns a int
-
setPreferredLifetime
public void setPreferredLifetime(int preferredLifetime) - Specified by:
setPreferredLifetimein interfacePrefixOption- Parameters:
preferredLifetime- Takes in a parameter of preferredLifetime
-
getPrefix
- Specified by:
getPrefixin interfacePrefixOption- Returns:
- IPV6Address Returns a IPV6Address
-
setPrefix
- Specified by:
setPrefixin interfacePrefixOption- Parameters:
prefix- Takes in a parameter of prefix
-
getFieldType
- Overrides:
getFieldTypein classNdOptionImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classNdOptionImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classNdOptionImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classNdOptionImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classNdOptionImpl
-